﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopOnlineTimeById")]
    public class OnlineTimeById : BaseObject
    {
        //begin
        public OnlineTimeById()
        {}
        public OnlineTimeById(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _ServiceStaffId;
        public string ServiceStaffId
        {
            get
            {
                return _ServiceStaffId;
            }
            set
            {
                SetPropertyValue("ServiceStaffId", ref _ServiceStaffId, value);
            }
        }
        private long _OnlineTimes;
        public long OnlineTimes
        {
            get
            {
                return _OnlineTimes;
            }
            set
            {
                SetPropertyValue("OnlineTimes", ref _OnlineTimes, value);
            }
        }
        private OnlineTimesOnDay _OnlineTimesOnDay;
        [Association("OnlineTimesOnDayOnlineTimeByIds", typeof(OnlineTimesOnDay))]
        public OnlineTimesOnDay OnlineTimesOnDay
        {
            get
            {
                return _OnlineTimesOnDay;
            }
            set
            {
                SetPropertyValue("OnlineTimesOnDay", ref _OnlineTimesOnDay, value);
            }
        }
        //end

    }
}
